home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / wireValues.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  3.1 KB  |  99 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //
  19. //  Alias|Wavefront Script File
  20. //  MODIFY THIS AT YOUR OWN RISK
  21. //
  22. //  Creation Date:  April 12 1996
  23. //  Author:         sspence
  24. //
  25. //  Description:
  26. //        These procs sets the state of controls in the property sheet.
  27. //        See also wireProperties.mel which constructs the property
  28. //        sheet.
  29. //
  30. //  Input Arguments:
  31. //      $toolName        - this is the name of the instance of the tool
  32. //                          that the property sheet is modifying.
  33. //
  34. //  Return Value:
  35. //      None.
  36. //
  37.  
  38. global proc wireValues ( string $toolName ) {
  39. //
  40. //  Description:
  41. //        Sets the state of the property sheet based on the values
  42. //        in the tool context.
  43. //
  44.  
  45.     // set my top layout to be the current parent
  46.     //
  47.         string $parent = (`toolPropertyWindow -q -location` + "|wire");
  48.     setParent $parent;
  49.  
  50.     // set property sheet label and icon
  51.     //
  52.     string $icon= "wire.xpm";
  53.     string $helpTag= "WireTool";
  54.  
  55.     toolPropertySetCommon $toolName $icon $helpTag;
  56.  
  57.  
  58.     // Set wire attribute values
  59.     //
  60.     checkBoxGrp -e -v1 `wireContext -q -ho $toolName` holderBox;
  61.        floatSliderGrp -e -v `wireContext -q -en $toolName` envelopeSlider;
  62.        floatSliderGrp -e -v `wireContext -q -ce $toolName` conSlider;
  63.     floatSliderGrp -e -v `wireContext -q -li $toolName` locSlider;    
  64.        floatSliderGrp -e -v `wireContext -q -dds $toolName` ddSlider;
  65.     checkBoxGrp -e -v1 `wireContext -q -gw $toolName` groupWireBox;
  66.     
  67.         string $positioning=`wireContext -q -do $toolName`;
  68.         if ($positioning == "Default") {
  69.             optionMenuGrp -edit -select 1 wirePositioningWidget;
  70.         }
  71.         else if ($positioning == "Before") {
  72.             optionMenuGrp -edit -select 2 wirePositioningWidget;
  73.         }
  74.         else if ($positioning == "After") {
  75.             optionMenuGrp -edit -select 3 wirePositioningWidget;
  76.         }
  77.         else if ($positioning == "Split") {
  78.             optionMenuGrp -edit -select 4 wirePositioningWidget;
  79.         }    
  80.         else if ($positioning == "Parallel") {
  81.             optionMenuGrp -edit -select 5 wirePositioningWidget;
  82.         }
  83.         else {
  84.             optionMenuGrp -edit -select 1 wirePositioningWidget;
  85.         }
  86.         
  87.  
  88.     int $excl=`wireContext -q -exc $toolName`;
  89.  
  90.     checkBoxGrp -e -v1 $excl exclWidget;
  91.        textFieldGrp -e -tx `wireContext -q -ep $toolName` -enable $excl 
  92.         partitionNameWidget;
  93.     
  94.     optionMenuGrp -e -enable $excl 
  95.         partitionListWidget;
  96.  
  97.     toolPropertySelect wire;
  98. }
  99.